
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '组织管理',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'zzbh_12a93dd6_axmx',
        name: "{{zzbh_12a93dd6_axmx}}",
        binding: 'zzbh',
        updateOn: 'blur',
        defaultI18nValue: '组织编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zzbh: FormControl;

    @NgFormControl({
        id: 'zzmc_e7e2651a_dda7',
        name: "{{zzmc_e7e2651a_dda7}}",
        binding: 'zzmc',
        updateOn: 'blur',
        defaultI18nValue: '组织名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zzmc: FormControl;

    @NgFormControl({
        id: 'projectNote_2112fae5_s3gm',
        name: "{{projectNote_2112fae5_s3gm}}",
        binding: 'projectNote',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    projectNote: FormControl;

    @NgFormControl({
        id: 'fgld_b361fbed_6ep0',
        name: "{{fgld_b361fbed_6ep0}}",
        binding: 'fgld',
        updateOn: 'blur',
        defaultI18nValue: '分管领导',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fgld: FormControl;

    @NgFormControl({
        id: 'fzr_98be0a33_lwsp',
        name: "{{fzr_98be0a33_lwsp}}",
        binding: 'fzr',
        updateOn: 'blur',
        defaultI18nValue: '负责人',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fzr: FormControl;

    @NgFormControl({
        id: 'sszz_e3cf8b3a_hndy',
        name: "{{sszz_e3cf8b3a_hndy}}",
        binding: 'sszz',
        updateOn: 'blur',
        defaultI18nValue: '组织类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    sszz: FormControl;

    @NgFormControl({
        id: 'wlgx_ead65119_yra9',
        name: "{{wlgx_ead65119_yra9}}",
        binding: 'wlgx',
        updateOn: 'blur',
        defaultI18nValue: '往来关系',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    wlgx: FormControl;

}